package inicio;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;

public class TelaModelo extends JFrame{
	private static final long serialVersionUID = 1L;

	public TelaModelo() {
		try {
			javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
		} catch(Exception e) {
			e.printStackTrace();
		}
		setSize(840, 610);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setLocationRelativeTo(null);
		setResizable(false);
		setLayout(null);
		
		
		JButton voltar=new JButton("Voltar");
		voltar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				new TelaInicial();
				dispose();
			}
		});
		voltar.setBounds(350, 540, 100, 30);
		add(voltar);
		
	}
	
	public static void main(String[] args) {
		new TelaModelo();
	}

}
